<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:replace="/common/head :: head" />
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>应用管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <div class="input-group-btn">
                                        <button data-toggle="dropdown"
                                            class="btn btn-white dropdown-toggle" type="button">应用名称
                                        </button>
                                    </div>
                                    <input type="text" class="form-control" id="condition"placeholder="应用Code/应用名称">
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <button type="button" class="btn btn-primary" onclick="App.search()">
                                    <i class="fa fa-search"></i>&nbsp;搜索
                                </button>
                                <button type="button" class="btn btn-primary button-margin" onclick="App.resetSearch()" >
                                    <i class="fa fa-trash"></i>&nbsp;重置
                                </button>
                            </div>
                        </div>
                        <div class="hidden-xs" id="appTableToolbar" role="group">
                            <button type="button" class="btn btn-primary" shiro:hasPermission ="/app/to_add" onclick="App.openAddApp()">
                                <i class="fa fa-plus"></i>&nbsp;添加
                            </button>
                            <button type="button" class="btn btn-primary button-margin" shiro:hasPermission ="/app/to_update" onclick="App.openEditApp()">
                                <i class="fa fa-edit"></i>&nbsp;修改
                            </button>
                            <button type="button" class="btn btn-primary button-margin" shiro:hasPermission ="/app/remove" onclick="App.deleteApp()">
                                <i class="fa fa-remove"></i>&nbsp;删除
                            </button>
                        </div>
                        <table id="appTable" data-mobile-responsive="true"
                            data-click-to-select="true">
                            <thead>
                                <tr>
                                    <th data-field="selectItem" data-checkbox="true"></th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
<footer th:replace="/common/footer :: footer"></footer>
<script th:src="@{/js/system/app/app.js}"></script>
</body>
</html>
